package com.dongdong.bookstore.module.ums.mapper;

import com.dongdong.bookstore.module.ums.model.Menu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 菜单表  Mapper 接口
 * </p>
 *
 * @author chiangkai
 * @since 2021-10-20
 */
public interface MenuMapper extends BaseMapper<Menu> {
    /**
     * 根据后台用户ID获取用户菜单
     */
    List<Menu> getMenuListByAdminId(@Param("adminId") Long adminId);

    List<Menu> getMenuByRoleId(Long roleId);
}
